#ifndef __SWITCH_H_
#define __SWITCH_H_

#include "gd32f30x.h"
#include "init.h"

extern uint16_t		IOSwitcwCloseCnt[SW_CHANNELNUM];	
extern uint16_t		IOSwitcwOpenCnt[SW_CHANNELNUM];	

ControlStatus IO_GetSwitchState(uint16_t *CloseCnt,uint16_t CloseTime,uint16_t *OpenCnt,uint16_t OpenTime,uint16_t ioin,ControlStatus state);

void Get_SwitchState(void);

#endif

